<%--
  Created by IntelliJ IDEA.
  User: xxlc
  Date: 2018/10/31
  Time: 19:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="java.net.URLEncoder" %>
<%@ page import="org.apache.commons.lang3.StringUtils" %>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>

<!DOCTYPE html>
<html>
<%
    String ret = request.getParameter("ret");
    if (StringUtils.isNotBlank(ret)) {
        ret = URLEncoder.encode(ret);
    } else {
        ret = "";
    }
%>
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>思齐管理系统登录</title>
    <meta name="author" content="Codrops"/>
    <link rel="shortcut icon" href="assets/images/icon.png">
    <link rel="stylesheet" type="text/css" href="css/login.css"/>
    <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
    <script>
        function setuser(type) {
            $("#type0").removeClass("denglubiaoti");
            $("#type1").removeClass("denglubiaoti");
            $(".ptype").val(type);
            usertype = type;
            $("#type" + type).addClass("denglubiaoti");
            $("#inputimail").focus();
        }
    </script>
</head>
<body onload="setuser(0)">
<div class="container">
    <header style="margin-top: 3%;margin-bottom: 2%;">
        <div class="logo">
            <h1>
                <img width="380px" height="80px" id="login" src="/assets/images/sqrjlogo.png">
            </h1>
        </div>
    </header>
    <section class="main clearfix">
        <form class="form-4 clearfix" style="width:900px" action="/login.page?ret=<%=ret%>" method="post">
            <div class="QR-Code">
                <div class="t">
                    <p>移动端生产任务单</p>
                </div>
                <img src="/assets/images/wx.png" >
                <div class="text">
                    <p><b>微信扫一扫&nbsp;&nbsp;&nbsp;手机下生产任务单</b></p>
                </div>
            </div>
            <div class="QR-Code">
                <div class="t">
                    <p>领导查询移动端</p>
                </div>
                <img src="/assets/images/wx2.jpg" >
                <div class="text">
                    <p><b>微信扫一扫&nbsp;&nbsp;&nbsp;手机查询云端数据</b></p>
                </div>
            </div>
            <div class="form-box" style="margin-top: 0px;">
                <div id="person">
                    <table width="100%" class="biaoge">
                        <tr>
                            <td id="type0" onclick="setuser(0)">
                                <div class="denglu">用户登录</div>
                            </td>
                            <td id="type1" onclick="setuser(1)">
                                <div class="denglu">管理登录</div>
                            </td>
                        </tr>
                    </table>
                    <div class="fenge"></div>
                    <input type="text" name="ptype" id="ptype" class="ptype" style="display:none"/>
                </div>

                <div class="form-message">
                    <p>
                        <text style="color: red; width: 100%;height:50px;margin-bottom:30px;background: yellow">${error}</text>
                    </p>
                </div>

                <p>
                    <label for="inputimail">账号</label>
                    <input class="full" id="inputimail" type="text" name="username" placeholder="请输入邮箱/手机号码" required
                           autofocus value="${username}">
                </p>
                <p>
                    <label for="inputpassword" style="margin-top: 10px">密码</label>
                    <input class="full" id="inputpassword" type="password" name='password' placeholder="密码" value=""
                           required>
                </p>

                <p>
                    <button class="ceshis" type="submit">登录</button>
                </p>
                <p>
                    <button class="ceshis" type="reset" onclick="location.href='/zhuce/register.page'">注册</button>
                </p>
            </div>

        </form>
    </section>
    <footer>

        <p><a href="/index.page" style="color: #2ecee7;border: #00a0e9">首页</a>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 天津思齐软件有限公司
            &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 备案号:津ICP备14003991号-1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 客服：022-66351935 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            技术支持：15122415616 &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
            邮箱：26308109@QQ.com&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.tjsiqi.com/"
                                              style="color: #2ecee7;border: #00a0e9">关于我们</a>
        </p>
    </footer>
</div>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
